/**
 * 创一个外部类，内部类，实例化一个内部类对象
 */
class OuterClass{
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;
    class InnerClass{
        public int data1 = 1111;
        public int data4 = 4;
        private int data5 = 5;
        public int data6 = 6;//内部类里不能创静态的
        InnerClass(){
            System.out.println("内部类构造方法执行！");
        }
        public void test(){
            System.out.println(data1);
            System.out.println(data1);
        }
    }

}
public class Test {
    public static void main(String[] args) {
        //实例化一个内部类对象
        OuterClass outerClass = new OuterClass();
        OuterClass.InnerClass innerClass = outerClass.new InnerClass();
    }
}
